# -!- coding: utf-8 -!-
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
调用第三方风控服务公司接口的响应信息respond
# 文件：riskResult.py
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

from pycacho.cachobase.logger import Logger

logger = Logger("riskResult").get_log()

# 同盾-信贷保镖API
tongDun = {
    "success": True,
    "id": "WF2017102621040019796391",
    "result_desc": {
        "ANTIFRAUD": {                                   # 贷前反欺诈
            "output_fields": {                           # 决策结果自定义输出字段，若没有使用决策结果自定义，则该项不返回
                "antifraud_decision": "Reject",
                "antifraud_model_score": 80              # 智察分
            },
            "final_score": 611,                          # 同盾欺诈分
            "final_decision": "REJECT",                  # 值为PASS或 REVIEW 或 REJECT
            "risk_items": [
                {
                    "rule_id": 714622,
                    "score": 10,                           # 该条规则的风险分数，只有在权重模式下有效
                    "decision": "Accept",                  # 值为Accept或Review或Reject
                    "risk_name": "身份证归属地位于高风险较为集中地区",
                    "risk_detail": [                       # 根据规则类型type取值不同,只有在有详情的情况下才会输出该字段
                        {
                            "type": "custom_list",         # custom_list:自定义列表规则
                            "description": "是否命中自定义名单",
                            "high_risk_areas": [
                                "浙江省杭州市"
                            ]
                        }
                    ]
                },       # 身份证归属地位于高风险较为集中地区
                {
                    "rule_id": 1118032,
                    "score": 10,
                    "decision": "Accept",
                    "risk_name": "身份证命中风险群体规则",
                    "risk_detail": [
                        {
                            "type": "suspected_team",
                            "suspect_team_detail_list": [
                                {
                                    "group_id": "92079941",
                                    "dim_type": "idNumber",
                                    "dim_value": "6222**********0000",
                                    "node_dist": "设备ID:18(64.29%);银行卡号:4(14.29%);手机号码:3(10.71%);身份证号:3(10.71%)",
                                    "fraud_dist": "法院结案:1(100%)",
                                    "black_rat": "3.57%",
                                    "grey_rat": "50%",
                                    "degree": 5,
                                    "total_cnt": 28,
                                    "black_cnt": 1,
                                    "grey_cnt": 14,
                                    "core_dst": 1,
                                    "black_dst": 1,
                                    "node_score": 88,
                                    "total_cnt_two": 7,
                                    "black_cnt_one": 6,
                                    "black_cnt_two": 7,
                                    "fraud_dist_one": "信贷逾期名单:1(100%)",
                                    "fraud_dist_two": "信贷逾期名单:2(100%)"
                                }
                            ]
                        }
                    ]
                },       # 身份证命中风险群体规则
                {
                    "rule_id": 714702,
                    "score": 40,
                    "decision": "Accept",
                    "risk_name": "身份证命中高风险关注名单",
                    "risk_detail": [
                        {
                            "type": "grey_list",
                            "description": "身份证命中高风险关注名单",
                            "hit_type_display_name": "身份证号码",
                            "fraud_type_display_name": "信贷逾期名单",
                            "grey_list_details": [
                                {
                                    "evidence_time": 1159174064000,
                                    "risk_level": "高",
                                    "fraud_type": "creditCrack",
                                    "fraud_type_display_name": "信贷逾期名单",
                                    "value": "330100190001019996"
                                }
                            ],
                        }
                    ]
                },       # 身份证命中高风险关注名单
                {
                    "rule_id": 714750,
                    "score": 40,
                    "decision": "Accept",
                    "risk_name": "身份证_姓名命中信贷逾期模糊名单",
                    "risk_detail": [
                        {
                            "type": "fuzzy_black_list",
                            "fuzzy_list_details": [
                                {
                                    "fuzzy_id_number": "33010019000101****",
                                    "fraud_type": "creditCrack",
                                    "fraud_type_display_name": "信贷逾期名单",
                                    "fuzzy_name": "测试"
                                }
                            ],
                            "fraud_type_display_name": "信贷逾期名单",
                            "description": "身份证_姓名命中信贷逾期模糊名单"
                        }
                    ]
                },       # 身份证_姓名命中信贷逾期模糊名单
                {
                    "rule_id": 714784,
                    "score": 27,
                    "decision": "Accept",
                    "risk_name": "3个月内身份证关联多个申请信息",
                    "risk_detail": [
                        {
                            "type": "frequency_detail",
                            "frequency_detail_list": [
                                {
                                    "data": [
                                        "123@qq.com",
                                        "456@qq.com",
                                        "789@qq.com"
                                    ],
                                    "detail": "3个月身份证关联邮箱数：3",
                                    "dim_type": "idNumber",
                                    "sub_dim_type": "accountEmail",
                                    "note": "3个月身份证关联邮箱数",
                                    "count": "3"
                                },
                                {
                                    "data": [
                                        "139****1315",
                                        "130****4143",
                                        "139****4424"
                                    ],
                                    "detail": "3个月身份证关联手机号数：3",
                                    "dim_type": "idNumber",
                                    "count": "3",
                                    "sub_dim_type": "accountMobile",
                                    "note" : "3个月身份证关联手机号数"
                                }
                            ]
                        }
                    ]
                },       # 3个月内身份证关联多个申请信息
                {
                    "rule_id": 714786,
                    "score": 12,
                    "risk_name": "3个月内申请信息关联多个身份证",
                    "risk_detail": [
                        {
                            "frequency_detail_list": [
                                {
                                    "data": [
                                        "3301**********9996",
                                        "6222**********0000",
                                        "5107**********0000"
                                    ],
                                    "detail": "3个月手机号关联身份证数：3",
                                    "dim_type": "accountMobile",
                                    "sub_dim_type": "idNumber",
                                    "note": "3个月身份证关联身份证数",
                                    "count": "3"
                                }
                            ],
                            "type": "frequency_detail"
                        }
                    ]
                },       # 3个月内申请信息关联多个身份证
                {
                    "rule_id": 714792,
                    "score": 10,
                    "decision": "Accept",
                    "risk_name": "3个月内申请人手机号作为联系人手机号出现的次数大于等于2",
                    "risk_detail": [
                        {
                            "type": "cross_frequency_detail",
                            "cross_frequency_detail_list": [
                                {
                                    "detail": "3个月内申请人手机号作为第一联系人手机号出现的次数：44",
                                    "dim_type": "idNumber",
                                    "sub_dim_type": "accountMobile",
                                    "note": "3个月内申请人手机号作为第一联系人手机号出现的次数",
                                    "count": "44"
                                }
                            ]
                        }
                    ]
                },       # 3个月内申请人手机号作为联系人手机号出现的次数大于等于2
                {
                    "rule_id": 1118486,
                    "score": 1,
                    "decision": "Accept",
                    "risk_name": "跨事件字段比较",
                    "risk_detail": [
                        {
                            "type": "cross_event_detail",
                            "cross_event_detail_list": [
                                {
                                    "detail": "主属性不变，统计过去时间片内指定字段值与当前字段值相同的次数：2",
                                    "dim_type": "idNumber",
                                    "sub_dim_type": "accountMobile",
                                    "note": "主属性不变，统计过去时间片内指定字段值与当前字段值相同的次数",
                                    "count": "2"
                                }
                            ]
                        }
                    ]
                },       # 跨事件字段比较
                {
                    "rule_id": 714696,
                    "score": 105,
                    "decision": "Accept",
                    "risk_name": "身份证命中信贷逾期名单",
                    "risk_detail": [
                        {
                            "type": "discredit_count",
                            "description": "身份证命中信贷逾期名单",
                            "discredit_times": 2,
                            "overdue_details": [
                                {
                                    "overdue_time": "2016-07",
                                    "overdue_amount_range": "(10000, 50000]",
                                    "overdue_day_range": "(60, 90]",
                                    "overdue_count": 3
                                },
                                {
                                    "overdue_time": "2016-07",
                                    "overdue_amount_range": "(10000, 50000]",
                                    "overdue_day_range": "(60, 90]",
                                    "overdue_count": 7
                                }
                            ]
                        }
                    ]
                },       # 身份证命中信贷逾期名单
                {
                    "rule_id": 1118030,
                    "score": 40,
                    "decision": "Accept",
                    "risk_name": "3个月内申请人在多个平台申请借款",
                    "risk_detail": [
                        {
                            "type": "platform_detail",
                            "platform_detail_dimension": [
                                {
                                    "count": 1,
                                    "detail": [
                                        {
                                            "count": 1,
                                            "industry_display_name": "信用卡中心"
                                        }
                                    ],
                                    "dimension": "手机"
                                },
                                {
                                    "count": 7,
                                    "detail": [
                                        {
                                            "count": 5,
                                            "industry_display_name": "无行业"
                                        },
                                        {
                                            "count": 1,
                                            "industry_display_name": "信用卡中心"
                                        },
                                        {
                                            "count": 1,
                                            "industry_display_name": "财产险"
                                        }
                                    ],
                                    "dimension": "身份证号码"
                                }
                            ],
                            "platform_detail": [
                                {
                                    "count": 5,
                                    "industry_display_name": "无行业"
                                },
                                {
                                    "count": 1,
                                    "industry_display_name": "信用卡中心"
                                },
                                {
                                    "count": 1,
                                    "industry_display_name": "财产险"
                                }
                            ],
                            "description": "在指定时间内，主属性匹配字段下关联的合作方的个数",
                            "platform_count": 7
                        }
                    ]
                },       # 3个月内申请人在多个平台申请借款
                {
                    "rule_id": 714650,
                    "score": 80,
                    "decision": "Accept",
                    "risk_name": "身份证命中法院失信名单",
                    "risk_detail": [
                        {
                            "type": "black_list",
                            "hit_type_display_name": "身份证号码",
                            "fraud_type_display_name": "法院失信、法院失信、法院失信",
                            "description": "身份证命中法院失信名单",
                            "court_details": [
                                {
                                    "value": "330100190001019996",
                                    "fraud_type": "court",
                                    "fraud_type_display_name": "法院失信",
                                    "executed_name": "李测试",
                                    "age": "41",
                                    "gender": "男",
                                    "province": "湖南",
                                    "case_date": "2016年10月10日",
                                    "execute_court": "衡南县人民法院",
                                    "term_duty": "被告偿还借款9万元及利息",
                                    "execute_subject": "25215",
                                    "execute_status": "已结案",
                                    "evidence_court": "衡南县人民法院",
                                    "carry_out": "全部未履行",
                                    "specific_circumstances": "其他有履行能力而拒不履行生效法律文书确定义务",
                                    "execute_code": "（2015）衡中法民四再终字第8号",
                                    "case_code": "(2016)湘0422执31号",
                                    "evidence_time": 1159174064000
                                },
                                {
                                    "value": "330100190001019996",
                                    "fraud_type": "court",
                                    "fraud_type_display_name": "法院失信",
                                    "executed_name": "李测试",
                                    "age": "41",
                                    "gender": "男",
                                    "province": "湖南",
                                    "case_date": "2016年10月10日",
                                    "execute_court": "衡南县人民法院",
                                    "term_duty": "被告偿还借款9万元及利息",
                                    "execute_subject": "25215",
                                    "execute_status": "已结案",
                                    "evidence_court": "衡南县人民法院",
                                    "carry_out": "全部未履行",
                                    "specific_circumstances": "其他有履行能力而拒不履行生效法律文书确定义务",
                                    "execute_code": "（2015）衡中法民四再终字第8号",
                                    "case_code": "(2016)湘0422执31号",
                                    "evidence_time": 1159174064000
                                }
                            ]
                        }
                    ]
                },       # 身份证命中法院失信名单
                {
                    "rule_id": 924681,
                    "score": 1,
                    "decision": "Accept",
                    "risk_name": "设备状态异常",
                    "risk_detail": [
                        {
                            "type": "device_status_abnormal",
                            "abnormal_tags": [
                                "ABNORMAL_TIME"
                            ],
                        }
                    ]
                },       # 设备状态异常
                {
                    "rule_id": 924691,
                    "score": 1,
                    "decision": "Accept",
                    "risk_name": "设备获取异常",
                    "risk_detail": [
                        {
                            "type": "fp_exception",
                            "code": "072",
                            "code_display_name": "参数校验非法"
                        }
                    ]
                },       # 设备获取异常
                {
                    "rule_id": 924711,
                    "score": 91,
                    "decision": "Accept",
                    "risk_name": "函数工具箱",
                    "policy_decision": "Reject",
                    "policy_mode": "Weighted",
                    "policy_score": "611",
                    "policy_name": "借款策略",
                    "risk_detail": [
                        {
                            "type": "function_kit",
                            "result": 2.0

                        }
                    ]
                },       # 函数工具箱
                {
                    "rule_id": 924491,
                    "score": 91,
                    "decision": "Accept",
                    "risk_name": "信贷名单",
                    "risk_detail": [
                        {
                            "type": "creditList_index_detail",
                            "result": "1",
                            "hits": [
                                {
                                    "case_no": "002",
                                    "role": "guarantor",
                                    "risk_type": "court_shixin",
                                    "judgment_doc": "1003779255584296960",
                                    "exec_amount": 500.91,
                                    "subject_type": "enterprise",
                                    "case_character": "criminal",
                                    "sex": "男",
                                    "name": "虾饺",
                                    "industry": "p2p"
                                }
                            ],
                        }
                    ]
                },       # 信贷名单
                {
                    "rule_id": 9247142,
                    "score": 96,
                    "decision": "Accept",
                    "risk_name": "函数工具箱",
                    "policy_decision": "Reject",
                    "policy_mode": "Weighted",
                    "policy_score": "611",
                    "policy_name": "借款策略",
                    "risk_detail": [
                        {
                            "type": "four_calculate",
                            "result": 2.0
                        }
                    ]
                },       # 函数工具箱
                {
                    "rule_id": 9247142,
                    "score": 96,
                    "decision": "Accept",
                    "risk_name": "风险群体规则V2",
                    "policy_decision": "Reject",
                    "policy_mode": "Weighted",
                    "policy_score": "611",
                    "policy_name": "手机风险",
                    "risk_detail": [
                        {
                            "type": "assoc_risk_score",
                            "node_score": 100,
                            "dim_type": "accountMobile",
                            "dim_value": "13011253684"

                        }
                    ]
                },       # 风险群体规则V2
                {
                    "rule_id": 714629,
                    "score": 10,
                    "risk_name": "自定义规则",
                    "policy_decision": "Reject",
                    "policy_mode": "Weighted",
                    "policy_score": "611",
                    "policy_name": "借款策略",
                    "risk_detail": [
                        {
                            "type": "indicatrix_result",
                            "indicatrix_result_detail_list": [
                                {
                                    "result": 0,
                                    "description": "身份证关联到的90天内全行业下全事件中的合作方最大银行卡数"
                                },
                                {
                                    "result": 3,
                                    "description": "身份证关联到的365天内全行业下申贷事件中的合作方最大银行卡数"
                                }
                            ]
                        }
                    ]
                },       # 自定义规则
            ]
        }
    }
}

# 腾讯天御分
tencent = {
    "code":0,
    "codeDesc":"Success",
    "found":1,                         # 表示该条记录能被查到
    "idFound":1,                       # 表示该条记录中的身份证能被查到
    "message":"No Error",
    "riskScore": 88,                   # 0~100： 欺诈分值,值越高欺诈可能性越大；
    "postTime":"1436664316",
    "riskInfo":[
        {
            "riskCode":5,              # 命中风险码5：身份认证失败
            "riskCodeValue":2          # 风险等级：1-低风险，2-中风险，3-高风险
        },
        {
            "riskCode":6,              # 命中风险码6：疑似恶意欺诈
            "riskCodeValue":3
        },
        {
            "riskCode":1107,            # 命中风险码1107：命中金融机构黑产风险名单，疑似金融欺诈行为
        },
    ]
}

# TalkingData-欺诈风险侦测服务-欺诈风险分+风险点特征-V2请求
talking = {
    "code": 2000,
    "msg": "",
    "data": {
        "requestId": "8259038",
        "riskScore": 19,
        "riskResultCode": "PASS",
        "riskResultName": "通过",
        "detectTime": 1547177064586,
        "POR_1005250": 2,
        "POR_1003186": 2,                 # 地理位置核验—近1月，出现的省份数量
        "classCount_app": 749,            # App使用核验查得数
        "classCount_device": 32,          # 设备核验查得数
        "classCount_location": 20,        # 地理位置核验查得数
        "classCount_overload": 120        # 多头核验查得数
    },
    "seq": "6a5326b08ba54176b127378ccc3430ec"
}

# 信息验证策略Api：infoverify 手机在网状态、时长及消费档次
bairong_infoverify = {
    # result：查询结果：1-查询成功 0-查无结果 2-请求超时 3-系统异常
    "Flag":{
        "infoverification":"1",
        "rule_c_telconsume":"0",
        "rule_c_telperiod":"1",
        "rule_c_telstatus":"1",
        "telconsume":"1",
        "telperiod":"1",
        "telstatus":"1"
    },
    "InfoVerification":{
        "final_decision":"Accept",
        "final_weight":"0",
        "hit_rules":{
            "rule_c_telperiod":{
                "CLC012":{
                    "name_rule":"手机在网时长极长",
                    "weight":"0"
                }
            },
            "rule_c_telstatus":{
                "CLE011":{
                    "name_rule":"手机状态正常",
                    "weight":"0"
                }
            }
        }
    },
    "TelConsume":{
        "costTime":333,
        # operation：手机号的运营商类型：1-电信 2-联通 3-移动 4-其他运营商，如170
        "operation":"3",
        # 消费档次区间值标识（单位：元）：移动（近三个月平均）1-[0-50) 2-[50-100) 3-[100-150) 4-[150-200) 5-200+
        # 联通（上个月）：1-0 2-(0-40) 3-[40-80) 4-[80-160) 5-160+
        # 电信（上个月） 1-0 2-(0,45] 3-(45,80] 4-(80,115] 5-115+
        "telConsume":"2"
    },        # 手机消费档次
    "TelPeriod":{
        "costTime":326,
        "data":{
            "value":"4"        # 手机在网时长区间—移动联通电信：空-无结果 1-[0,6) 2-[6,12) 3-[12,24) 4-[24,+) 单位：月
        },
        "operation":"3",
        "result":"1"
    },         # 手机在网时长
    "TelStatus":{
        "costTime":339,
        "data":{
            "value":"1"       # 手机在网状态—移动联通电信：空-无结果 1-正常 2-停机 3-销号 4-异常（包括预销号、不在网）
        },
        "operation":"3",
        "result":"1"
    },         # 手机在网状态
    "code":"00",
    "code_detail":{
        "TelConsume":"600000",
        "TelPeriod":"600000",
        "TelStatus":"600000"
    },
    "swift_number":"3004154_20190920163527_82205422A18"
}
# 百融-
bairong = {
    "code": "00",
    "swift_number": "3003989_20190716101622_23705412A19",
    "Flag": {
        "specialList_c": "1",      # 特殊名单验证
        "riskstrategy": "1",
        "rulespeciallist_c": "1"   # 反欺诈规则-特殊名单验证
    },
    "SpecialList_c": {
        "id": {
            "nbank_cons_lost_allnum": "2",
            "nbank_bad": "0",
            "nbank_lost": "0",
            "nbank_lost_time": "0",
            "nbank_nsloan_overdue_allnum": "2",
            "nbank_overdue_time": "2",
            "nbank_cons_lost": "0",
            "bank_bad_time": "1",
            "nbank_other_bad_allnum": "1",
            "bank_bad": "0",
            "nbank_overdue": "0",
            "nbank_nsloan_overdue_time": "2",
            "nbank_finlea_lost": "0",
            "nbank_other_bad_time": "1",
            "nbank_finlea_lost_time": "0",
            "nbank_nsloan_overdue": "0",
            "bank_bad_allnum": "1",
            "nbank_bad_time": "1",
            "nbank_overdue_allnum": "2",
            "nbank_finlea_lost_allnum": "2",
            "nbank_bad_allnum": "1",
            "nbank_lost_allnum": "6",
            "nbank_cons_lost_time": "0",
            "nbank_other_bad": "0"
        },
        "cell": {                              # 手机号
            "nbank_lost": "0",
            "nbank_lost_time": "1",
            "nbank_lost_allnum": "1"
        },
        "gid": {},                             # 设备唯一标识
        "lm_cell": {}
    },
    "Rule": {
        "result": {
            "final_decision": "Reject",
            "final_weight": "100"
        },
        "hit_rules": {
            "rulespeciallist_c": {
                "QJT017": {
                    "weight": "100",
                    "name_rule": "近两年本人命中非银高风险"
                },
                "QJT019": {
                    "weight": "80",
                    "name_rule": "近两年本人命中非银中风险"
                },
                "QJT009": {
                    "weight": "80",
                    "name_rule": "近两年本人命中银行中风险"
                },
                "QJT021": {
                    "weight": "30",
                    "name_rule": "近两年本人命中非银一般风险"
                }
            }
        }
    },
    # 策略引擎产品输出
    "RiskStrategy": {
        "platform": "web",
        "final_decision": "Reject",
        "product_name": "特殊名单验证",
        "scene": "lend",
        "Rule": {
            "weight": "100",
            "decision": "Reject"
        },
        "product_type": "100083",
        "strategy_version": "1.0",
        "strategy_id": "STR0026449"
    }
}

# 百行征信-征信报告查询   通过提供姓名、身份证号、手机号码及查询原因，查询并获取授权人的信用报告
baihang = {
    "reportHeader": {
        "reportId": "BH1908131028097298534950",
        "reportTime": "2019-08-13T10:28:09",
        "queryResult": 1                          # 0-表示查无此人，1-表示查询命中
    },
    "personalProfile": {
        "pid": "49b159c3c1abef6baea683532427ef3034c07024392f3a43b2c039888f3c1cd2",
        "name": "e3d169e4ff22249de3deaf0266c0e29dc571ba33d7734239ac691b5b5e66c8ff",
        "mobileCount": 0                          # 统计数据更新日期在24个月以内的手机号（手机号去重），不统计查询接口中获得的手机号
    },
    "homeInfo": [],
    "nonRevolvingLoan": {
        "summary": {
            "loanCount": 0,                       # 非循环累计贷款笔数
            "openLoanCount": 0,                   # 非循环未结清贷款笔数
            "remainingAmount": 0,                 # 非循环未结清总余额
            "remainingOverdueLoanCount": 0,
            "remainingOverdueAmount": 0,
            "remainingMaxOverdueStatus": "N",     # 当前最严重逾期状态：当前正处于"逾期"的贷款中"当前逾期天数"换算的逾期状态值
            "overdueCount": 0,
            "maxOverdueStatus": "N"               # 历史最严重逾期状态（过去3年）：取还款数据中最大的"当前逾期天数"换算的逾期状态值
        },
        "D30": {                                  # 近30/90/180/360天单笔贷款概要
            "applyTenantCount": -1,
            "loanCount": 0,
            "loanAmount": 0,
            "loanTenantCount": 0,
            "maxLoanAmount": 0,
            "averageLoanAmount": 0,
            "overdueLoanCount": 0
        },
        "D90": {
            "applyTenantCount": -1,
            "loanCount": 0,
            "loanAmount": 0,
            "loanTenantCount": 0,
            "maxLoanAmount": 0,
            "averageLoanAmount": 0,
            "overdueLoanCount": 0
        },
        "D180": {
            "applyTenantCount": -1,
            "loanCount": 0,
            "loanAmount": 0,
            "loanTenantCount": 0,
            "maxLoanAmount": 0,
            "averageLoanAmount": 0,
            "overdueLoanCount": 0
        },

        "D360": {
            "applyTenantCount": -1,
            "loanCount": 0,
            "loanAmount": 0,
            "loanTenantCount": 0,
            "maxLoanAmount": 0,
            "averageLoanAmount": 0,
            "overdueLoanCount": 0
        },

    },                   # 非循环(单笔)贷款信息汇总
    "revolvingLoan": {
        "summary": {
            "remainingAmount": 0,                # 循环未结清总余额
            "remainingOverdueAmount": 0,
            "remainingMaxOverdueStatus": "N",
            "overdueCount": 0,
            "maxOverdueStatus": "N",
            "creditLimitSum": 0,                 # 循环当前授信总额
            "accountCount": 0,                   # 累计循环授信账户数
            "validAccountCount": 0,              # 有效循环授信账户数
            "maxCreditLimitPerTenant": 0,        # 循环单个机构最高授信额度
            "remainingOverdueAccountCount": 0
        },
        "D180": {
            "applyTenantCount": -1,
            "lendingAmount": 0,
            "creditLimitSum": 0,
            "overdueAccountCount": 0,
            "accountCount": 0
        },
        "D30": {
            "applyTenantCount": -1,
            "lendingAmount": 0,
            "creditLimitSum": 0,
            "overdueAccountCount": 0,
            "accountCount": 0
        },
        "D360": {
            "applyTenantCount": -1,
            "lendingAmount": 0,
            "creditLimitSum": 0,
            "overdueAccountCount": 0,
            "accountCount": 0
        },
        "D90": {
            "applyTenantCount": -1,
            "lendingAmount": 0,
            "creditLimitSum": 0,
            "overdueAccountCount": 0,
            "accountCount": 0
        },

    },                      # 循环授信信息
    "queryHistory": [
        {
            "tenantType": "-",                       # 查询机构类型：暂不输出结果，显示"-"
            "tenantName": "广州民盛互联网小额贷款有限公司（联调测试）",
            "userId": "GZMSHLWXD_TEST",
            "date": "2019-08-12",
            "reason": 1                               # 查询原因：1-授信审批，2-贷中管理，3-贷后管理，6-担保查询
        },
        {
            "tenantType": "-",
            "tenantName": "广州民盛互联网小额贷款有限公司（联调测试）",
            "userId": "GZMSHLWXD_TEST",
            "date": "2019-08-12",
            "reason": 1
        },
        {
            "tenantType": "-",
            "tenantName": "广州民盛互联网小额贷款有限公司（联调测试）",
            "userId": "GZMSHLWXD_TEST",
            "date": "2019-08-12",
            "reason": 1
        },
        {
            "tenantType": "-",
            "tenantName": "广州民盛互联网小额贷款有限公司（联调测试）",
            "userId": "GZMSHLWXD_TEST",
            "date": "2019-08-12",
            "reason": 1
        },
        {
            "tenantType": "-",
            "tenantName": "广州民盛互联网小额贷款有限公司（联调测试）",
            "userId": "GZMSHLWXD_TEST",
            "date": "2019-08-12",
            "reason": 1
        }
    ],                       # 近12个月查询记录
    "workInfo": []
}

# 融360身份证OCR识别response
idCardOcr = {
    "idCardFront":{
        "error": 200,
        "msg": None,
        "request_id": "15663680206787137654",
        "tianji_api_faceplus_idcardocr_response": {
            "birthday": {
                "year": "1994",
                "day": "28",
                "month": "10"
            },
            "race": "汉",
            "name": "靳勇",
            "time_used": 738,
            "gender": "男",
            "id_card_number": "510802199410284112",
            "address": "四川省广元市利州区宝轮镇范家村7组17号",
            "request_id": "1566368020,c8cccd61-5280-467d-b54f-b3e994c50acf",
            "legality": {
                "Edited": 0,
                "Photocopy": 0,
                "ID Photo": 1,
                "Screen": 0,
                "Temporary ID Photo": 0
                },
            "head_rect": {
                "rt": {
                    "y": 0.21244635,
                    "x": 0.8891892
                },
                "lt": {
                    "y": 0.20171674,
                    "x": 0.6135135
                },
                "lb": {
                    "y": 0.7167382,
                    "x": 0.61621624
                },
                "rb": {
                    "y": 0.72103006,
                    "x": 0.8972973
                }
            },
            "side": "front"
        },
    },
    "idCardBack": {
        "error": 200,
        "msg": None,
        "request_id": "15659425859735292475",
        "tianji_api_faceplus_idcardocr_response": {
            "legality": {
                "Edited": 0,
                "Photocopy": 0,
                "ID Photo": 0.838,
                "Screen": 0.162,
                "Temporary ID Photo": 0
            },
            "request_id": "1565942586,60cb54d9-6e6e-4e30-8c5d-36adf6041403",
            "time_used": 291,  # 整个请求所花费的时间，单位为毫秒。
            "valid_date": "2012.12.24-2022.12.24",
            "issued_by": "农安县公安局",
            "side": "back"  # 背面
        }
    }
}

# 融360FACE++活体认证response
r360Face = {
    "getRandomNumber":{
        "error": 200,
        "msg": None,
        "request_id": "15663657767615331560",
        "tianji_api_faceplus_getrandomnumber_response": {
            "time_used": 8,
            "biz_no": "BIZNOh520190821000049",
            "random_number": "3687",
            "token_random_number": "44e9565dc2f10cbc9c770f91e3c779c3",
            "request_id": "1566365776,609ae9ab-3d40-43f3-b76b-31a147b16859"
        }
    },          # 获取随机数-H5
    "validateVideo":{
        "error": 200,
        "msg": None,
        "request_id": "15121522669651485736",
        "tianji_api_faceplus_validatevideo_response": {
            "time_used": 1630,
            "biz_no": "1234567",
            "token_video": "62a7d763a884006e424a3ee69a9ee14b",
            "request_id": "1513068061,da1bd688-4dac-4212-9831-f2b39e7b49bd",
            "image_best": "data:image/jpeg;base64,..."
        }
    },            # 自拍视频的活体验证
    "faceVerify":{
        "error": 200,
        "msg": None,
        "request_id": "15663749523134979427",
        "tianji_api_faceplus_verify_response": {
            "time_used": 1845,
            "request_id": "1566374952,045dc6ff-aded-4a29-b783-6e8a2787b21b",
            "id_exceptions": {
                "id_photo_monochrome": 0,
                "id_attacked": 0
            },
            "biz_no": "BIZNOh520190821000085",
            "liveness": {
                "procedure_validation": "PASSED",
                "face_genuineness": "PASSED"
            },
            "result_ref1": {
                "confidence": 96.652,
                "thresholds": {
                    "1e-3": 62.169,
                    "1e-5": 74.399,
                    "1e-4": 69.315,
                    "1e-6": 78.038
                }
            },
            "result_faceid": {
                "confidence": 89.813,
                "thresholds": {
                    "1e-3": 62.169,
                    "1e-5": 74.399,
                    "1e-4": 69.315,
                    "1e-6": 78.038
                }
            }
        }
    }                # 活体综合比对
}

# 融360-互联网信息response
r360Report = {
    "collectUser":{
        "error": 200,
        "msg": None,
        "tianji_api_tianjireport_collectuser_response": {
            "userId": "111",
            "outUniqueId": "2017010101010101",
            "redirectUrl": "https:\\/\\/tianji.rong360.com\\/tianjiwapreport\\/login?data=nD%2BRaNTUBXKJrM1QPpIetAWrE6MrA%2BY3XsXV8RBRpXZXdp06yTMhd0V1KE9SchzHipT4gpfaQwEf%2BsXY4xc6nnAJVyarKpEFvbUWa9C8fv5WShWEBB1oG8T%2F0aVEm6njtUf38I2VKVz08gA%2FoX8l4jppFCkZpAeuu6%2FPwZaMuDoLMqzLvojCh%2BE2v%2FompiO%2FACR73S7wE9yjiap19CiCaPz4T%2BDl2aBZddtuQxKz5iU%3D"
        }
    },
    "report_detail":{
        "error": 200,
        "msg": None,
        "tianji_api_tianjireport_detail_response": {
            "user_info_check": {
                        "check_black_info": {
                                "contacts_class1_blacklist_cnt": 0,
                                "contacts_class1_cnt": 1
                        },
                        "check_search_info": {
                                "arised_open_web": [],
                                "phone_with_other_idcards": [],
                                "idcard_with_other_phones": [
                                        "13712345678"
                                ],
                                "register_org_cnt": -1,
                                "idcard_with_other_names": [],
                                "searched_org_type": [
                                        "其他"
                                ],
                                "searched_org_cnt": 2,
                                "register_org_type": [],
                                "phone_with_other_names": []
                        }
                },
            "user_portrait": {
                        "silent_days": {
                                "start_day": "2019-03-02",
                                "monthly_avg_days": 3.33,
                                "max_detail": [
                                        "2019-03-05~2019-03-09"
                                ],
                                "silent_3_detail": [
                                        "2019-03-05~2019-03-09",
                                        "2019-03-21~2019-03-24",
                                        "2019-03-27~2019-03-29"
                                ],
                                "max_interval": 5,
                                "end_day": "2019-08-23",
                                "silent_detail": [
                                        "2019-03-03",
                                        "2019-03-05",
                                        "2019-03-06",
                                        "2019-03-07",
                                        "2019-03-08",
                                        "2019-03-09",
                                        "2019-03-14",
                                        "2019-03-21",
                                        "2019-03-22",
                                        "2019-03-23",
                                        "2019-03-24",
                                        "2019-03-27",
                                        "2019-03-28",
                                        "2019-03-29",
                                        "2019-07-17",
                                        "2019-07-22",
                                        "2019-07-27",
                                        "2019-07-28",
                                        "2019-07-30",
                                        "2019-07-31"
                                ]
                        },
                        "contacts_distribution": {
                                "ratio": 0.888,
                                "area": "广东"
                        },
                        "both_call_cnt": 9,
                        "night_activities": {
                                "monthly_avg_seconds_ratio": 0.1075,
                                "monthly_avg_seconds": 573.67,
                                "night_msg_ratio": 0.2113,
                                "night_talk_seconds_ratio": 0.3452,
                                "monthly_avg_msg": 7.5,
                                "monthly_avg_msg_ratio": 0.1529
                        }
                },
            "input_info": {
                        "phone": "13202480788",
                        "id_card": "441481199412012272",
                        "emergency_info": [
                                {
                                        "phone": "13564985896",
                                        "relation": "0",
                                        "name": "张老师",
                                        "no": 1
                                },
                                {
                                        "phone": "13536988569",
                                        "relation": "0",
                                        "name": "酷狗",
                                        "no": 2
                                }
                        ],
                        "name": "曾君伟"
                },
            "call_log": [
                {
                "contact_noon": 0,
                "talk_seconds": 4475,
                "talk_cnt": 14,
                "contact_dusk": 0,
                "contact_3m": 10,
                "msg_cnt": 0,
                "contact_1m": 0,
                "contact_1w": 0,
                "p_relation": "",
                "phone_label": "",
                "phone_info": "",
                "phone_info_confidence": 0,
                "called_seconds": 4341,
                "contact_forenoon": 2,
                "contact_evening": 8,
                "contact_holiday": 0,
                "contact_midnight": 0,
                "called_cnt": 9,
                "contact_weekday": 9,
                "receive_cnt": 0,
                "phone": "13500126219",
                "call_seconds": 134,
                "first_contact_date": "2019-03-10 10:34:07",
                "contact_afternoon": 4,
                "contact_early_morning": 0,
                "contact_all_day": False,
                "last_contact_date": "2019-07-11 22:26:16",
                "month_detail": [
                    {
                    "called_cnt": 3,
                    "talk_seconds": 3840,
                    "talk_cnt": 7,
                    "msg_cnt": 0,
                    "called_seconds": 3790,
                    "receive_cnt": 0,
                    "month": "2019-07",
                    "call_cnt": 4,
                    "send_cnt": 0,
                    "last_contact_date": "2019-07-11 22:26:16",
                    "call_seconds": 50,
                    "first_contact_date": "2019-07-02 21:36:19"
                    },
                    {
                    "called_cnt": 4,
                    "talk_seconds": 445,
                    "talk_cnt": 4,
                    "msg_cnt": 0,
                    "called_seconds": 445,
                    "receive_cnt": 0,
                    "month": "2019-03",
                    "call_cnt": 0,
                    "send_cnt": 0,
                    "last_contact_date": "2019-03-13 16:22:34",
                    "call_seconds": 0,
                    "first_contact_date": "2019-03-10 10:34:07"
                    }
                ],
                "contact_3m_plus": 4,
                "call_cnt": 5,
                "send_cnt": 0,
                "phone_location": "广东",
                "contact_morning": 0,
                "contact_weekend": 5
                },
                {
                                "contact_noon": 2,
                                "talk_seconds": 0,
                                "talk_cnt": 0,
                                "contact_dusk": 2,
                                "contact_3m": 9,
                                "msg_cnt": 29,
                                "contact_1m": 3,
                                "contact_1w": 2,
                                "p_relation": "",
                                "phone_label": "",
                                "phone_info": "",
                                "phone_info_confidence": 0,
                                "called_seconds": 0,
                                "contact_forenoon": 0,
                                "contact_evening": 1,
                                "contact_holiday": 1,
                                "contact_midnight": 1,
                                "called_cnt": 0,
                                "contact_weekday": 29,
                                "receive_cnt": 0,
                                "phone": "1065599718",
                                "call_seconds": 0,
                                "first_contact_date": "2019-03-11 12:13:11",
                                "contact_afternoon": 0,
                                "contact_early_morning": 12,
                                "contact_all_day": False,
                                "last_contact_date": "2019-08-23 08:37:09",
                                "month_detail": [
                                    {
                                                "called_cnt": 0,
                                                "talk_seconds": 0,
                                                "talk_cnt": 0,
                                                "msg_cnt": 2,
                                                "called_seconds": 0,
                                                "receive_cnt": 0,
                                                "month": "2019-08",
                                                "call_cnt": 0,
                                                "send_cnt": 2,
                                                "last_contact_date": "2019-08-23 08:37:09",
                                                "call_seconds": 0,
                                                "first_contact_date": "2019-08-16 18:04:01"
                                        },
                                    {
                                                "called_cnt": 0,
                                                "talk_seconds": 0,
                                                "talk_cnt": 0,
                                                "msg_cnt": 3,
                                                "called_seconds": 0,
                                                "receive_cnt": 0,
                                                "month": "2019-03",
                                                "call_cnt": 0,
                                                "send_cnt": 3,
                                                "last_contact_date": "2019-03-25 07:26:20",
                                                "call_seconds": 0,
                                                "first_contact_date": "2019-03-11 12:13:11"
                                        }
                                ],
                                "contact_3m_plus": 0,
                                "call_cnt": 0,
                                "send_cnt": 29,
                                "phone_location": "全国",
                                "contact_morning": 11,
                                "contact_weekend": 0
                        }
            ],
            "contact_area_analysis": [
                {
                "called_cnt": 99,
                "talk_seconds": 8853,
                "talk_cnt": 126,
                "area": "广东",
                "receive_cnt": 0,
                "month_detail": [
                    {
                    "called_cnt": 8,
                    "talk_seconds": 618,
                    "talk_cnt": 10,
                    "msg_cnt": 0,
                    "called_seconds": 190,
                    "receive_cnt": 0,
                    "month": "2019-08",
                    "call_cnt": 2,
                    "contact_phone_cnt": 10,
                    "send_cnt": 0,
                    "call_seconds": 428
                    },
                    {
                    "called_cnt": 16,
                    "talk_seconds": 899,
                    "talk_cnt": 19,
                    "msg_cnt": 0,
                    "called_seconds": 816,
                    "receive_cnt": 0,
                    "month": "2019-03",
                    "call_cnt": 3,
                    "contact_phone_cnt": 14,
                    "send_cnt": 0,
                    "call_seconds": 83
                    }
                ],
                "called_seconds": 7181,
                "msg_cnt": 18,
                "call_cnt": 27,
                "contact_phone_cnt": 83,
                "send_cnt": 18,
                "call_seconds": 1672
                },
                {
                                "called_cnt": 2,
                                "talk_seconds": 15,
                                "talk_cnt": 2,
                                "area": "北京",
                                "receive_cnt": 0,
                                "month_detail": [
                                        {
                                                "called_cnt": 1,
                                                "talk_seconds": 9,
                                                "talk_cnt": 1,
                                                "msg_cnt": 0,
                                                "called_seconds": 9,
                                                "receive_cnt": 0,
                                                "month": "2019-07",
                                                "call_cnt": 0,
                                                "contact_phone_cnt": 1,
                                                "send_cnt": 0,
                                                "call_seconds": 0
                                        },
                                        {
                                                "called_cnt": 1,
                                                "talk_seconds": 6,
                                                "talk_cnt": 1,
                                                "msg_cnt": 0,
                                                "called_seconds": 6,
                                                "receive_cnt": 0,
                                                "month": "2019-05",
                                                "call_cnt": 0,
                                                "contact_phone_cnt": 1,
                                                "send_cnt": 0,
                                                "call_seconds": 0
                                        }
                                ],
                                "called_seconds": 15,
                                "msg_cnt": 0,
                                "call_cnt": 0,
                                "contact_phone_cnt": 2,
                                "send_cnt": 0,
                                "call_seconds": 0
                }
            ],
            "emergency_analysis": [
                {
                "phone_info": "",
                "talk_seconds": 0,
                "name": "张老师",
                "talk_cnt": 0,
                "last_contact_date": "",
                "called_seconds": 0,
                "msg_cnt": 0,
                "phone_label": "",
                "phone": "13564985896",
                "send_cnt": 0,
                "call_cnt": 0,
                "receive_cnt": 0,
                "first_contact_date": "",
                "call_seconds": 0,
                "called_cnt": 0
                },
                {
                "phone_info": "",
                "talk_seconds": 0,
                "name": "酷狗",
                "talk_cnt": 0,
                "last_contact_date": "",
                "called_seconds": 0,
                "msg_cnt": 0,
                "phone_label": "",
                "phone": "13536988569",
                "send_cnt": 0,
                "call_cnt": 0,
                "receive_cnt": 0,
                "first_contact_date": "",
                "call_seconds": 0,
                "called_cnt": 0
                }
            ],
            "basic_info": {
                        "reliability": 3,
                        "operator": "CHINAUNICOM_GUANGDONG",
                        "constellation": "射手座",
                        "phone_info": "",
                        "reg_time": "2014-08-04",
                        "id_card_check": 2,
                        "name_check": 1,
                        "cur_balance": 14.28,
                        "province": "广东省",
                        "operator_id_card": "4414****2272",
                        "operator_zh": "中国联通",
                        "city": "梅州市",
                        "phone": "13202480788",
                        "gender": "男",
                        "age": 24,
                        "phone_label": "",
                        "operator_addr": "",
                        "operator_name": "曾君伟",
                        "phone_location": "广东",
                        "monthly_avg_consumption": 134.9,
                        "region": "兴宁市"
                },
            "monthly_consumption": [
                        {
                                "called_cnt": 15,
                                "net_flow": 9009.42,
                                "talk_cnt": 17,
                                "msg_cnt": 13,
                                "called_seconds": 399,
                                "receive_cnt": 10,
                                "month": "2019-08",
                                "call_cnt": 2,
                                "call_consumption": "",
                                "send_cnt": 3,
                                "talk_seconds": 827,
                                "call_seconds": 428
                        },
                        {
                                "called_cnt": 37,
                                "net_flow": 5162.25,
                                "talk_cnt": 51,
                                "msg_cnt": 32,
                                "called_seconds": 4850,
                                "receive_cnt": 19,
                                "month": "2019-07",
                                "call_cnt": 14,
                                "call_consumption": 96.53,
                                "send_cnt": 13,
                                "talk_seconds": 5467,
                                "call_seconds": 617
                        },
                        {
                                "called_cnt": 22,
                                "net_flow": 12738.79,
                                "talk_cnt": 28,
                                "msg_cnt": 26,
                                "called_seconds": 750,
                                "receive_cnt": 20,
                                "month": "2019-06",
                                "call_cnt": 6,
                                "call_consumption": 99.14,
                                "send_cnt": 6,
                                "talk_seconds": 1068,
                                "call_seconds": 318
                        },
                        {
                                "called_cnt": 24,
                                "net_flow": 9308.95,
                                "talk_cnt": 28,
                                "msg_cnt": 94,
                                "called_seconds": 761,
                                "receive_cnt": 60,
                                "month": "2019-05",
                                "call_cnt": 4,
                                "call_consumption": 252.55,
                                "send_cnt": 34,
                                "talk_seconds": 1079,
                                "call_seconds": 318
                        },
                        {
                                "called_cnt": 12,
                                "net_flow": 19382.97,
                                "talk_cnt": 15,
                                "msg_cnt": 29,
                                "called_seconds": 509,
                                "receive_cnt": 25,
                                "month": "2019-04",
                                "call_cnt": 3,
                                "call_consumption": 88.2,
                                "send_cnt": 4,
                                "talk_seconds": 623,
                                "call_seconds": 114
                        },
                        {
                                "called_cnt": 17,
                                "net_flow": 439.41,
                                "talk_cnt": 20,
                                "msg_cnt": 19,
                                "called_seconds": 823,
                                "receive_cnt": 16,
                                "month": "2019-03",
                                "call_cnt": 3,
                                "call_consumption": 138.09,
                                "send_cnt": 3,
                                "talk_seconds": 906,
                                "call_seconds": 83
                        }
                ],
            "special_cate": [
                {
                "called_cnt": 0,
                "phone_detail": [],
                "cate": "澳门",
                "talk_cnt": 0,
                "receive_cnt": 0,
                "month_detail": [],
                "called_seconds": 0,
                "msg_cnt": 0,
                "call_cnt": 0,
                "send_cnt": 0,
                "talk_seconds": 0,
                "call_seconds": 0
                },
                {
                "called_cnt": 11,
                "phone_detail": [
                    {
                    "called_cnt": 1,
                    "talk_seconds": 179,
                    "talk_cnt": 1,
                    "phone_info": "推销骚扰类",
                    "receive_cnt": 0,
                    "called_seconds": 179,
                    "msg_cnt": 0,
                    "call_cnt": 0,
                    "phone": "18029234803",
                    "send_cnt": 0,
                    "call_seconds": 0
                    },
                    {
                    "called_cnt": 1,
                    "talk_seconds": 3,
                    "talk_cnt": 1,
                    "phone_info": "推销骚扰类",
                    "receive_cnt": 0,
                    "called_seconds": 3,
                    "msg_cnt": 0,
                    "call_cnt": 0,
                    "phone": "17068596317",
                    "send_cnt": 0,
                    "call_seconds": 0
                    }
                ],
                "cate": "网络标识",
                "talk_cnt": 11,
                "receive_cnt": 0,
                "month_detail": [
                                        {
                                                "called_cnt": 3,
                                                "talk_seconds": 24,
                                                "talk_cnt": 3,
                                                "msg_cnt": 0,
                                                "called_seconds": 24,
                                                "receive_cnt": 0,
                                                "month": "2019-08",
                                                "call_cnt": 0,
                                                "send_cnt": 0,
                                                "call_seconds": 0
                                        },
                                        {
                                                "called_cnt": 2,
                                                "talk_seconds": 68,
                                                "talk_cnt": 2,
                                                "msg_cnt": 0,
                                                "called_seconds": 68,
                                                "receive_cnt": 0,
                                                "month": "2019-07",
                                                "call_cnt": 0,
                                                "send_cnt": 0,
                                                "call_seconds": 0
                                        },
                                        {
                                                "called_cnt": 3,
                                                "talk_seconds": 83,
                                                "talk_cnt": 3,
                                                "msg_cnt": 0,
                                                "called_seconds": 83,
                                                "receive_cnt": 0,
                                                "month": "2019-06",
                                                "call_cnt": 0,
                                                "send_cnt": 0,
                                                "call_seconds": 0
                                        },
                                        {
                                                "called_cnt": 1,
                                                "talk_seconds": 37,
                                                "talk_cnt": 1,
                                                "msg_cnt": 0,
                                                "called_seconds": 37,
                                                "receive_cnt": 0,
                                                "month": "2019-05",
                                                "call_cnt": 0,
                                                "send_cnt": 0,
                                                "call_seconds": 0
                                        },
                                        {
                                                "called_cnt": 1,
                                                "talk_seconds": 179,
                                                "talk_cnt": 1,
                                                "msg_cnt": 0,
                                                "called_seconds": 179,
                                                "receive_cnt": 0,
                                                "month": "2019-04",
                                                "call_cnt": 0,
                                                "send_cnt": 0,
                                                "call_seconds": 0
                                        },
                                        {
                                                "called_cnt": 1,
                                                "talk_seconds": 7,
                                                "talk_cnt": 1,
                                                "msg_cnt": 0,
                                                "called_seconds": 7,
                                                "receive_cnt": 0,
                                                "month": "2019-03",
                                                "call_cnt": 0,
                                                "send_cnt": 0,
                                                "call_seconds": 0
                                        }
                                ],
                "called_seconds": 398,
                "msg_cnt": 0,
                "call_cnt": 0,
                "send_cnt": 0,
                "talk_seconds": 398,
                "call_seconds": 0
                }
            ],
            "head_info": {
                "report_time": "2019-08-23 12:05:29",
                "version": "3.0",
                "search_id": "15665330706613700994"
            },
            "trip_info": [],
            "tel_area_analysis": [],
            "risk_analysis": {
                "blacklist_cnt": 0,
                "apply_cnt": 0,
                "financial_blacklist_by_id_card": {
                    "arised": False,
                    "black_type": []
                },
                "contacts_overdue": [
                    {
                    "hit_cnt": 0,
                    "seconds": 0,
                    "cnt": 0,
                    "type": 1
                    },
                    {
                    "hit_cnt": 0,
                    "seconds": 0,
                    "cnt": 0,
                    "type": 2
                    }
                ],
                "financial_blacklist_by_phone": {
                    "arised": False,
                    "black_type": []
                },
                "single_overdue": [
                    {
                    "hit_cnt": 0,
                    "if_tel": 0,
                    "if_msg": 0,
                    "no": 1
                    },
                    {
                    "hit_cnt": 0,
                    "if_tel": 0,
                    "if_msg": 0,
                    "no": 2
                    }
                ],
                "searched_cnt": 2
            }
        },
        "request_id": "15665331308054989480",
        "userId": "YH20190822000026",
        "outUniqueId": "ASh50220190823000008",
        "type": "mobile",
        "state": "report"
    },
    "mobile_getData":{
        "error": 200,
        "msg": "处理成功",
        "wd_api_mobilephone_getdatav2_response": {
            "data": {
                "data_list": [
                    {
                    "userdata": {
                        "user_source": "CHINAMOBILE_GUANGDONG",
                        "id_card": "",
                        "addr": "",
                        "real_name": "**玉",
                        "phone": "13534461573",
                        "phone_remain": "17.61",
                        "reg_time": "2015-09-28",
                        "update_time": "2019-08-23 14:03:27",
                        "score": "",
                        "contact_phone": "13534461573",
                        "star_level": "",
                        "authentication": "1",
                        "phone_status": "1",
                        "package_name": ""
                    },
                    "billdata": [
                        {
                        "month": "201903",
                        "call_pay": "25.00",
                        "package_fee": "25.00",
                        "msg_fee": "",
                        "tel_fee": "",
                        "net_fee": "",
                        "addtional_fee": "",
                        "preferential_fee": "",
                        "generation_fee": "",
                        "other_fee": "",
                        "score": "269",
                        "otherspaid_fee": "",
                        "pay_fee": ""
                        },
                        {
                        "month": "201904",
                        "call_pay": "46.09",
                        "package_fee": "42.99",
                        "msg_fee": "0.10",
                        "tel_fee": "",
                        "net_fee": "",
                        "addtional_fee": "",
                        "preferential_fee": "",
                        "generation_fee": "3.00",
                        "other_fee": "",
                        "score": "300",
                        "otherspaid_fee": "",
                        "pay_fee": ""
                        }
                    ],
                    "teldata": [
                        {
                        "month": "2019-03",
                        "total_size": 15,
                        "items": [
                            {
                            "business_name": "动感地带4G",
                            "call_time": "2019-03-14 21:46:32",
                            "call_type": "2",
                            "fee": "0.00",
                            "special_offer": "-",
                            "trade_addr": "云浮",
                            "trade_time": "8",
                            "trade_type": "1",
                            "receive_phone": "551"
                            },
                            {
                                  "business_name": "省内短号群聊网包月套餐",
                                  "call_time": "2019-03-20 17:21:04",
                                  "call_type": "1",
                                  "fee": "0.00",
                                  "special_offer": "-",
                                  "trade_addr": "云浮",
                                  "trade_time": "2",
                                  "trade_type": "1",
                                  "receive_phone": "555"
                            }
                        ]
                        },
                        {
                        "month": "2019-04",
                        "total_size": 57,
                        "items": [
                            {
                                                                        "business_name": "省内短号群聊网包月套餐",
                                                                        "call_time": "2019-04-04 15:45:48",
                                                                        "call_type": "1",
                                                                        "fee": "0.00",
                                                                        "special_offer": "-",
                                                                        "trade_addr": "云浮",
                                                                        "trade_time": "18",
                                                                        "trade_type": "1",
                                                                        "receive_phone": "551"
                                                                },
                            {
                                                                        "business_name": "动感地带4G",
                                                                        "call_time": "2019-04-05 12:29:39",
                                                                        "call_type": "2",
                                                                        "fee": "0.00",
                                                                        "special_offer": "-",
                                                                        "trade_addr": "云浮",
                                                                        "trade_time": "9",
                                                                        "trade_type": "1",
                                                                        "receive_phone": "551"
                                                                }
                        ]
                        }
                    ],
                    "msgdata": [
                        {
                        "month": "2019-03",
                        "total_size": 15,
                        "items": [
                            {
                            "business_name": "动感地带4G",
                            "fee": "0.00",
                            "send_time": "2019-03-01 11:45:11",
                            "special_offer": "动感地带4G",
                            "trade_addr": "内地",
                            "trade_type": "1",
                            "trade_way": "2",
                            "receiver_phone": ""
                            },
                            {
                            "business_name": "动感地带4G",
                            "fee": "0.00",
                            "send_time": "2019-03-29 20:16:17",
                            "special_offer": "动感地带4G",
                            "trade_addr": "内地",
                            "trade_type": "1",
                            "trade_way": "2",
                            "receiver_phone": ""
                            }
                        ]
                        },
                        {
                        "month": "2019-08",
                        "total_size": 45,
                        "items": [
                            {
                            "business_name": "0元100条短信月包（24个月）",
                            "fee": "0.00",
                            "send_time": "2019-08-01 12:47:31",
                            "special_offer": "0元100条短信月包（24个月）",
                            "trade_addr": "内地",
                            "trade_type": "1",
                            "trade_way": "1",
                            "receiver_phone": "1069070069"
                            },
                            {
                            "business_name": "动感地带4G",
                            "fee": "0.00",
                            "send_time": "2019-08-22 09:10:41",
                            "special_offer": "动感地带4G",
                            "trade_addr": "内地",
                            "trade_type": "1",
                            "trade_way": "2",
                            "receiver_phone": ""
                            }
                        ]
                        }
                    ],
                    "netdata": [
                        {
                        "month": "2019-03",
                        "total_size": 135,
                        "items": [
                            {
                            "business_name": "100M国内通用流量|100M国内通用流量",
                            "fee": "0.00",
                            "net_type": "4G",
                            "net_way": "",
                            "preferential_fee": "套餐内",
                            "start_time": "2019-03-01 00:03:38",
                            "total_time": "17956",
                            "total_traffic": "70032.00",
                            "trade_addr": "广东省"
                            },
                            {
                            "business_name": "100M国内通用流量",
                            "fee": "0.00",
                            "net_type": "4G",
                            "net_way": "",
                            "preferential_fee": "套餐内",
                            "start_time": "2019-03-01 21:08:47",
                            "total_time": "13085",
                            "total_traffic": "16602.00",
                            "trade_addr": "广东省"
                            }
                        ]
                        },
                        {
                        "month": "2019-08",
                        "total_size": 1759,
                        "items": [
                            {
                            "business_name": "1G国内通用流量",
                            "fee": "0.00",
                            "net_type": "4G",
                            "net_way": "",
                            "preferential_fee": "套餐外",
                            "start_time": "2019-08-01 15:11:05",
                            "total_time": "38",
                            "total_traffic": "335.00",
                            "trade_addr": "广东省"
                            },
                            {
                            "business_name": "1G国内通用流量",
                            "fee": "0.00",
                            "net_type": "4G",
                            "net_way": "",
                            "preferential_fee": "套餐外",
                            "start_time": "2019-08-01 17:17:07",
                            "total_time": "518",
                            "total_traffic": "750.00",
                            "trade_addr": "广东省"
                            }
                        ]
                        }
                    ],
                    "rechargedata": [
                        {
                        "fee": "50.00",
                        "recharge_time": "2019-04-21 00:00:00",
                        "recharge_way": "现金缴费"
                        },
                        {
                        "fee": "50.00",
                        "recharge_time": "2019-08-08 00:00:00",
                        "recharge_way": "现金缴费"
                        }
                    ],
                    "netlogdata": [
                        {
                        "month": "2019-03",
                        "total_size": 0,
                        "items": []
                        },
                        {
                        "month": "2019-08",
                        "total_size": 0,
                        "items": []
                        }
                    ],
                    "familydata": [
                        {
                        "expire_time": "",
                        "join_time": "",
                        "member_type": "master",
                        "mobile_city": "云浮",
                        "num": "1",
                        "phone": "13435947219",
                        "short_num": "551"
                        },
                        {
                        "expire_time": "",
                        "join_time": "",
                        "member_type": "member",
                        "mobile_city": "佛山",
                        "num": "3",
                        "phone": "13534461573",
                        "short_num": "556"
                        }
                    ],
                    "monthinfo": {
                        "billdata": {
                            "normal_cnt": 5,
                            "miss_cnt": 1,
                            "empty_cnt": 0,
                            "items": {
                                "201903": 1,
                                "201908": -1
                            }
                        },
                        "teldata": {
                            "normal_cnt": 6,
                            "miss_cnt": 0,
                            "empty_cnt": 0,
                            "items": {
                                "201903": 1,
                                "201908": 1
                            }
                        },
                        "msgdata": {
                            "normal_cnt": 6,
                            "miss_cnt": 0,
                            "empty_cnt": 0,
                            "items": {
                                "201903": 1,
                                "201908": 1
                            }
                        },
                        "netdata": {
                            "normal_cnt": 6,
                            "miss_cnt": 0,
                            "empty_cnt": 0,
                            "items": {
                                "201903": 1,
                                "201908": 1
                            }
                        }
                    }
                }]
            }
        },
        "userId": "15665401333175402435",
        "outUniqueId": "ASh50220190823000013",
        "type": "mobile",
        "state": "report"
    }
}

# 天创信用response
tianChuang = {
    # 旅行信息－分析出行报告_航空
    "getPassengerValueReport":{
        "seqNum": "75190****3005",
        "message": "成功",
        "status": 0,                      # 0-成功，1~10（其他）5-TokenKey验证失败 , 6-接口未定义或停止使用
        "data": {
            "result": 1,                  # 0-查询成功_⽆记录，1-查询成功_有记录
            "resultMsg": "查询成功_有记录",
            "idcard": "1104****4510",
            "name": "",
            "flightMonth": "201906",      # 最繁忙的乘机⽉份
            "airline": "海南航,1次",       # 最频繁使⽤航空公司
            "flyTimes": 2,                # 最繁忙的⽉份乘机次数
            "fromCity": "成都1次,北京1次",  # 最频繁乘机出发城市
            "destCity": "北京1次,成都1次",  # 最频繁乘机到达城市
            "flightTimes": 2,             # 飞⾏次数
            "avgDelay": 0,                # 平均延误时间/分钟
            "avgDiscount": 72,            # 平均折扣
            "avgTicketDay": 1,            # 平均提前出票天数
            "avgPrice": "1330",
            "tsDelay": 0,                 # 总延误时间/分钟
            "fCabin": 0,                  # 头等舱乘机次数
            "cCabin": 0,                  # 公务舱乘机次数
            "yCabin": 2,                  # 经济舱乘机次数
            "cnCount": 2,                 # 国内飞⾏次数
            "interCount": 0,              # 国外飞⾏次数
            "freeCount": 0,               # 免票次数
            "lastFromCity": "成都",        # 最后起飞城市
            "lastDestCity": "北京",        # 最后抵达城市
            "lastFlightDate": "20190612",  # 最后飞⾏时间
            "totalMileage": 3394,          # 总共飞⾏⾥程数 单位 km
        }
    },
    # 旅行信息－分析出行报告_铁路V2
    "railwayUserInfoV2":{
        "seqNum": "072*******",
        "message": "成功",
        "status": 0,                      # 0-成功，1~10（其他）
        "data": {
            "result": "1",                # 0-查询成功, 有数据，1-查询成功, ⽆数据
            "resultMsg": "查询成功, 有数据",
            "object": "(0-36)"                 # result为1时，"未查得"
        }
    },
    # 综合信息－消费探针V2.0
    "consumingProbe01":{
        "seqNum": "1919082200281064",
        "message": "成功",
        "status": 0,
        "data": {
            "result": {
                "TAP001": "2",          # 名下常⽤卡数量
                "TAP002": "2",          # 名下常⽤⼿机号数量
                "TAP003": "2018-11-14", # 最近⼀次成功交易时间
                "TAP004": "1",          # 最近⼀次成功交易⾦额(⾦额单位，1单位为200元)
                "TAP005": "FIN",        # 最近⼀次成功交易⼀级⾏业(SHOP-⽣活购物类，FIN-⾦融及实物投资类，TRV-出⾏旅游类，EDU-教育培训类，ENT-娱乐服务类，OTH-其他)
                "TAP006": "2016-12",    # 初次⽹络交易时间（⽉份数）
                "TAP007": "4",          # 单⽇最⾼交易额（1单位为200元）
                "TAP008": "2",          # 平均单⽇交易额（1单位为200元）
                "TAP009": "1",          # 最⾼单⽉交易额（1单位为200元）
                "TAP010": "1",
                "TAP011": "3",
                "TAP012": "10",
                "TAP013": "6",
                "TAP014": "1",          # 过去⼀年发⽣交易⽉份数：x个
                "TAP015": "50.00%",     # ⽀付成功率
                "TAP016": "FIN",        # 交易笔数最多的行业分类
                "TAP017": "FIN",        # 交易金额最高的行业分类
                "TAP018": "0",          # ⽣活购物类消费笔数最多的⾦额区间
                "TAP019": "0",          # 出⾏旅游类消费笔数最多的⾦额区间
                "TAP020": "F",          # ⾦融及实物投资类消费笔数最多的⾦额区间 (A-10000+，B-(5000,10000]，C-(1000,5000]，D-(200,1000]，E-(50,200]，F-[0,50])
                "TAP021": "0",          # 教育培训类消费笔数最多的⾦额区间
                "TAP022": "0",          # 娱乐服务类消费笔数最多的⾦额区间
                "TAP023": "0",          # 教育其他类消费笔数最多的⾦额区间
                "TAP024": "0",          # 保险类交易金额：1单位为200元
                "TAP025": "0",          # 房屋租赁类交易⾦额：1单位为200元
                "TAP026": "0",          # 航旅类交易⾦额：1单位为200元
                "TAP027": "1",          # 互⾦平台交易⾦额：1单位为200元
                "TAP028": "240",        # 消费能⼒评分（200-⽆成功交易，240~900-有成功交易）
                "TAP029": "D",          # ⽤户标签（A-低价值日间交易用户，B-高频低价日间交易用户，C-低频高价日间交易用户，D-高价值日间交易用户，E-低价值非日间交易用户，F-高频低价费日间交易用户，G-低频高价费日间交易用户，H-高价值非日间交易用户）
                "TAP030": "FIN",        # 个⼈消费偏好（0-⽆成功交易，其他-⾏业码）
                "TAP031": "0",
                "TAP032": "0",
                "TAP033": "1",
                "TAP034": "0",
                "TAP035": "0",
                "TAP036": "3",          # 近12个⽉交易笔数
                "TAP037": "0",
                "TAP038": "0",
                "TAP039": "0",
                "TAP040": "0",
                "TAP041": "0",
                "TAP042": "0",
                "TAP043": "1",
                "TAP044": "1",
                "TAP045": "1",
                "TAP046": "0",          # 近12个⽉在生活购物类交易的商户数：x个
                "TAP047": "0",          # 近12个⽉在出⾏旅游类交易的商户数：x个
                "TAP048": "1",          # 近12个⽉在⾦融及实物投资类交易的商户数：x个
                "TAP049": "0",          # 近12个⽉在教育培训类交易的商户数：x个
                "TAP050": "0",          # 近12个⽉在娱乐服务类交易的商户数：x个
                "TAP051": "0",          # 近12个⽉在其他类交易的商户数：x个
                "TAP052": "0",
                "TAP053": "0",
                "TAP054": "1",
                "TAP055": "0",          # 近12个⽉在生活购物类的最⾼单笔交易⾦额：1单位为200元
                "TAP056": "0",          # 近12个⽉在出⾏旅游类的最⾼单笔交易⾦额：1单位为200元
                "TAP057": "1",          # 近12个⽉在金融及实物投资类的最⾼单笔交易⾦额：1单位为200元
                "TAP058": "0",          # 近12个⽉在教育培训类的最⾼单笔交易⾦额：1单位为200元
                "TAP059": "0",          # 近12个⽉在娱乐服务类的最⾼单笔交易⾦额：1单位为200元
                "TAP060": "0",          # 近12个⽉在其他类的最⾼单笔交易⾦额：1单位为200元
                "TAP061": "1",          # 近12个⽉在其他的最⾼单笔交易⾦额：1单位为200元
                "TAP062": "0",          # 近12个⽉在生活购物类的平均单笔交易⾦额：1单位为200元
                "TAP063": "0",          # 近12个⽉在出⾏旅游类的平均单笔交易⾦额：1单位为200元
                "TAP064": "1",          # 近12个⽉在金融及实物投资类的平均单笔交易⾦额：1单位为200元
                "TAP065": "0",          # 近12个⽉在教育培训类的平均单笔交易⾦额：1单位为200元
                "TAP066": "0",          # 近12个⽉在娱乐服务类的平均单笔交易⾦额：1单位为200元
                "TAP067": "0",          # 近12个⽉在其他类的平均单笔交易⾦额：1单位为200元
                "TAP068": "0",
                "TAP069": "0",
                "TAP070": "0",
                "TAP071": "0",
                "TAP072": "0",
                "TAP073": "0",
                "TAP074": "0",
                "TAP075": "0",
                "TAP076": "0",
                "TAP077": "0",
                "TAP078": "0",
                "TAP079": "0",
                "TAP080": "0",          # 近12个⽉在生活购物类交易的⾦额：1单位为200元
                "TAP081": "0",          # 近12个⽉在出⾏旅游类交易的⾦额：1单位为200元
                "TAP082": "1",          # 近12个⽉在金融及实物投资类交易的⾦额：1单位为200元
                "TAP083": "0",          # 近12个⽉在教育培训类交易的⾦额：1单位为200元
                "TAP084": "0",          # 近12个⽉在娱乐服务类交易的⾦额：1单位为200元
                "TAP085": "0",          # 近12个⽉在其他类交易的⾦额：1单位为200元
                "TAP086": "0",          # 近12个⽉在生活购物类交易的笔数：x笔
                "TAP087": "0",          # 近12个⽉在出⾏旅游类交易的笔数：x笔
                "TAP088": "3",          # 近12个⽉在金融及实物投资类交易的笔数：x笔
                "TAP089": "0",          # 近12个⽉在教育培训类交易的笔数：x笔
                "TAP090": "0",          # 近12个⽉在娱乐服务类交易的笔数：x笔
                "TAP091": "0",          # 近12个⽉在其他类交易的笔数：x笔
                "TAP092": "1",
                "TAP093": "0",
                "TAP094": "0",
                "TAP095": "3",
                "TAP096": "0",
                "TAP097": "0",
                "TAP098": "0",
                "TAP099": "0",
                "TAP100": "1",
                "TAP101": "0",
                "TAP102": "0",
                "TAP103": "0",
                "TAP104": "3",
                "TAP105": "0",
                "TAP106": "1",
                "TAP107": "0",
                "TAP108": "3",
                "TAP109": "0",
                "TAP110": "0",
                "TAP111": "0",
                "TAP112": "0",
                "TAP113": "0",
                "TAP114": "0",          # 近12个⽉使⽤借记卡在生活购物类消费的⾦额：1单位为200元
                "TAP115": "0",          # 近12个⽉使⽤借记卡在出⾏旅游类消费的⾦额：1单位为200元
                "TAP116": "1",          # 近12个⽉使⽤借记卡在金融及实物投资类消费的⾦额：1单位为200元
                "TAP117": "0",          # 近12个⽉使⽤借记卡在教育培训类消费的⾦额：1单位为200元
                "TAP118": "0",          # 近12个⽉使⽤借记卡在娱乐服务类消费的⾦额：1单位为200元
                "TAP119": "0",          # 近12个⽉使⽤借记卡在其他类消费的⾦额：1单位为200元
                "TAP120": "0",          # 近12个⽉使⽤贷记卡在生活购物类消费的⾦额：1单位为200元
                "TAP121": "0",          # 近12个⽉使⽤贷记卡在出⾏旅游类消费的⾦额：1单位为200元
                "TAP122": "0",          # 近12个⽉使⽤贷记卡在金融及实物投资类消费的⾦额：1单位为200元
                "TAP123": "0",          # 近12个⽉使⽤贷记卡在教育培训类消费的⾦额：1单位为200元
                "TAP124": "0",          # 近12个⽉使⽤贷记卡在娱乐服务类消费的⾦额：1单位为200元
                "TAP125": "0",          # 近12个⽉使⽤贷记卡在其他类消费的⾦额：1单位为200元
                "TAP126": "0",          # 近12个⽉在生活购物类交易的⾦额在[0,50]的笔数：x笔
                "TAP127": "0",
                "TAP128": "0",
                "TAP129": "0",
                "TAP130": "0",
                "TAP131": "0",          # 近12个⽉在生活购物类交易的⾦额在10000+的笔数：x笔
                "TAP132": "0",          # 近12个⽉在出⾏旅游类交易的⾦额在[0,50]的笔数：x笔
                "TAP133": "0",          # 近12个⽉在出⾏旅游类交易的⾦额在(50,200]的笔数：x笔
                "TAP134": "0",          # 近12个⽉在出⾏旅游类交易的⾦额在(200,1000]的笔数：x笔
                "TAP135": "0",          # 近12个⽉在出⾏旅游类交易的⾦额在(1000,5000]的笔数：x笔
                "TAP136": "0",          # 近12个⽉在出⾏旅游类交易的⾦额在(5000,10000]的笔数：x笔
                "TAP137": "0",          # 近12个⽉在出⾏旅游类交易的⾦额在10000+的笔数：x笔
                "TAP138": "3",          # 近12个⽉在金融及实物投资类交易的⾦额在[0,50]的笔数：x笔
                "TAP139": "0",          # 近12个⽉在金融及实物投资类交易的⾦额在(50,200]的笔数：x笔
                "TAP140": "0",
                "TAP141": "0",
                "TAP142": "0",          # 近12个⽉在金融及实物投资类交易的⾦额在(5000,10000]的笔数：x笔
                "TAP143": "0",          # 近12个⽉在金融及实物投资类交易的⾦额在10000+的笔数：x笔
                "TAP144": "0",          # 近12个⽉在教育培训类交易的⾦额在[0,50]的笔数：x笔
                "TAP145": "0",
                "TAP146": "0",
                "TAP147": "0",
                "TAP148": "0",          # 近12个⽉在教育培训类交易的⾦额在(5000,10000]的笔数：x笔
                "TAP149": "0",          # 近12个⽉在教育培训类交易的⾦额在10000+的笔数：x笔
                "TAP150": "0",          # 近12个⽉在娱乐服务类交易的⾦额在[0,50]的笔数：x笔
                "TAP151": "0",
                "TAP152": "0",
                "TAP153": "0",
                "TAP154": "0",
                "TAP155": "0",          # 近12个⽉在娱乐服务类交易的⾦额在10000+的笔数：x笔
                "TAP156": "0",          # 近12个⽉在其他类交易的⾦额在[0,50]的笔数：x笔
                "TAP157": "0",
                "TAP158": "0",
                "TAP159": "0",
                "TAP160": "0",
                "TAP161": "0",          # 近12个⽉在其他类交易的⾦额在10000+的笔数：x笔
                "TAP162": "",           # 未命中
                "TAP163": "",
                "TAP164": "",
                "TAP165": "",
                "TAP166": "",
                "TAP167": "",
                "TAP168": "",
                "TAP169": "",
                "TAP170": "",
                "TAP171": "",
                "TAP172": "",
                "TAP173": "",
                "TAP174": "",
                "TAP175": "",
                "TAP176": "",
                "TAP177": "",
                "TAP178": "",
                "TAP179": "",
                "TAP180": "",
                "TAP181": "",
                "TAP182": "",
                "TAP183": "",
                "TAP184": "",
                "TAP185": "",
                "TAP186": "",
                "TAP187": "",
                "TAP188": "",
                "TAP189": "",
                "TAP190": "",
                "TAP191": "",
                "TAP192": "",
                "TAP193": "",
                "TAP194": "",
                "TAP195": "",
                "TAP196": "",
                "TAP197": "",
                "TAP198": "",
                "TAP199": "",
                "TAP200": ""
            }
        }
    },
    # 综合信息_消费计算变量模型
    "consumptionVariables":{
        "message": "成功",
        "seqNum": "1919082200281224",
        "status": 0,
        "result": "0",                    # 0-模型计算成功(收费)，1-模型计算失败(不收费）
        "resultMsg": "模型计算成功",
        "data": {
            "content": [
                {
                "amt_ttl_12m": 69.0,
                "amt_ttl_12m_Night": 0.0,
                "amt_ttl_6m": 69.0,              # 六个⽉内⽤户购买各种产品的总订单⾦额
                "amt_type_12m_10": 0.0,
                "amt_type_12m_12": 0.0,
                "amt_type_24m_11": 0.0,
                "amt_type_36m_13": 0.0,
                "amt_type_6m_1": 0.0,
                "amt_type_6m_10": 0.0,
                "amt_type_6m_11": 0.0,
                "amt_type_6m_13": 0.0,
                "amt_type_6m_2": 0.0,
                "amt_type_6m_3": 0.0,
                "amt_type_6m_4": 0.0,
                "amt_type_6m_5": 0.0,
                "amt_type_6m_6": 0.0,
                "amt_type_6m_7": 0.0,
                "amt_type_6m_8": 69.0,
                "amt_type_6m_9": 0.0,
                "amt_type_6m_zhineng": 0.0,
                "amt_type_ratio_6m_1": 0.0,
                "amt_type_ratio_6m_10": 0.0,
                "amt_type_ratio_6m_11": 0.0,
                "amt_type_ratio_6m_13": 0.0,
                "amt_type_ratio_6m_2": 0.0,
                "amt_type_ratio_6m_3": 0.0,
                "amt_type_ratio_6m_4": 0.0,
                "amt_type_ratio_6m_5": 0.0,
                "amt_type_ratio_6m_6": 0.0,
                "amt_type_ratio_6m_7": 0.0,
                "amt_type_ratio_6m_8": 1.0,              # 六个⽉内⽤户购买的家居产品订单⾦额占总订单⾦额的⽐例
                "amt_type_ratio_6m_9": 0.0,
                "amt_type_ratio_6m_zhineng": 0.0,
                "avg_amt_type_36m_4": 0.0,
                "avg_discount_type_24m_10": 123.0,
                "car_6m_money": 0,
                "car_6m_num": 0,
                "child_6m_money": 0,
                "child_6m_num": 0,
                "close_12m_mean_money": 0,
                "cnt_ttl_12m": 1,                       # 年度订单数
                "cnt_ttl_12m_Night": 0.0,
                "cnt_ttl_6m": 1,                        # 六个⽉内⽤户购买各种产品的总订单量
                "cnt_type_12m_12": 0.0,
                "cnt_type_36m_9": 0.0,
                "cnt_type_6m_1": 0.0,
                "cnt_type_6m_10": 0.0,
                "cnt_type_6m_11": 0.0,
                "cnt_type_6m_13": 0.0,
                "cnt_type_6m_2": 0.0,
                "cnt_type_6m_3": 0.0,
                "cnt_type_6m_4": 0.0,
                "cnt_type_6m_5": 0.0,
                "cnt_type_6m_6": 0.0,
                "cnt_type_6m_7": 0.0,
                "cnt_type_6m_8": 1,
                "cnt_type_6m_9": 0.0,
                "cnt_type_6m_zhineng": 0.0,
                "cnt_type_ratio_6m_1": 0.0,
                "cnt_type_ratio_6m_10": 0.0,
                "cnt_type_ratio_6m_11": 0.0,
                "cnt_type_ratio_6m_13": 0.0,
                "cnt_type_ratio_6m_2": 0.0,
                "cnt_type_ratio_6m_3": 0.0,
                "cnt_type_ratio_6m_4": 0.0,
                "cnt_type_ratio_6m_5": 0.0,
                "cnt_type_ratio_6m_6": 0.0,
                "cnt_type_ratio_6m_7": 0.0,
                "cnt_type_ratio_6m_8": 1.0,
                "cnt_type_ratio_6m_9": 0.0,
                "cnt_type_ratio_6m_zhineng": 0.0,
                "cons_type_amtrate": 0.8516,             # 消费⾦额最⼤的类别占总消费⾦额的⽐值
                "cons_type_cntrate": 0.4286,             # 消费笔数最⼤的类别占总消费笔数的⽐值
                "consume_12m_amt": 69.0,
                "consume_12m_cnt": 1,
                "consvariety": -999,                     # 电商消费多样性
                "cos_stab": 0.0,
                "diamond_6m_money": 0,
                "diamond_6m_num": 0,
                "digital_6m_money": 0,
                "digital_6m_num": 0,
                "discount_cnt_12m": 1,
                "div_cons_24m": 0.5033,                 # 24个⽉内消费产品的多样性
                "earliest_cons_m": 24,
                "entertainment_6m_money": 0,
                "entertainment_6m_num": 0,
                "hosehold_6m_money": 69.0,
                "hosehold_6m_num": 1,
                "label_24_num": 3,
                "latest_record_m": 4,
                "level_12m_consume": 1,
                "max_interval_month": 9,
                "mobile": "18576783787",
                "mobile_1111_discount618_desc_min": -999,
                "mobile_1111_orderamout_desc_min": -999,
                "mobile_all_cntaddr_desc_fourLevelProv": 0,
                "mobile_all_cntaddr_desc_oneLevelCity": 6,
                "mobile_all_cntaddr_desc_oneLevelProv": 6,
                "mobile_all_cntaddr_desc_threeLevelCity": 0,
                "mobile_buymonth_sumorderamountmonth_mdesc_max_monthbuyssumorderamount": 694.0,
                "mobile_buyyear_meanorderamountyear_ydesc_maxlinkratio_yearbuysmeanorderamount": -0.4753,
                "mobile_buyyear_sumorderamountyear_ydesc_maxlinkratio_yearbuyssumorderamount": -0.7074,
                "mobile_buyyear_sumorderamountyear_ydesc_minlinkratio_yearbuyssumorderamount": -0.7376,
                "mobile_buyyear_sumorderamountyear_ydesc_skew_yearbuyssumorderamount": 1.3511,
                "mobile_diffPayOrder_desc_mean": 61.5,
                "mobile_diffPayOrder_desc_median": 8.5,
                "mobile_diffPayOrder_desc_ql": 5.75,
                "mobile_diffPayOrder_desc_qu": 18.0,
                "mobile_diffdays_desc_drange": 626,
                "mobile_diffdays_desc_max": 768,
                "mobile_diffdays_desc_median": 569,
                "mobile_email_desc_emailIsTrue": 0,
                "mobile_hourbin0005_orderamout_desc_max": -999,
                "mobile_hourbin0005_orderamout_desc_ql": -999,
                "mobile_hourbin0509_discount_desc_ql": 123.0,
                "mobile_hourbin0509_orderamout_desc_qu": 46.0,
                "mobile_hourbin1418_orderamout_desc_cv": 0.0,
                "mobile_hourbin2224_discount_desc_qu": 30.0,
                "mobile_hourbin2224_orderamout_desc_max": 199.0,
                "mobile_platform_meanAmountcategory_gdesc_max_platformbuysmeanAmount": 241.975,
                "mon_max_record": 69.0,
                "month_num": 1,
                "refund_cnt_12m": 0.0,
                "sports_6m_money": 0,
                "sports_6m_num": 0,
                "type_12m_sum": 1,
                "virtual_6m_money": 0,
                "virtual_6m_num": 0
            }
            ]
        }
    },
    # 运营商信息-手机二要素接口
    "verifyMobileInfo":{
        "seqNum": "0011517298789230",
        "message": "成功",
        "status": 0,               # 接口返回码：0-成功(收费); 1-10 各种错误
        "data": {
            "resultMsg": "验证结果⼀致",
            "result": "0"          # 认证结果码：0-验证结果⼀致 （收费）;1-验证结果不⼀致（收费）;-1-查⽆记录（不收费）
        }
    },
    # 运营商信息－运营商三要素验证
    "verifyMobileInfo3C": {
        "seqNum": "0011508992570832",
        "message": "成功",
        "status": 0,              # 接口返回码：0-成功(收费); 1-10 各种错误
        "data": {
            "resultMsg": "三维验证⼀致",
            "result": "1",        # 三维验证结果：1-三维验证⼀致；2-三维验证不⼀致
            "isp": "移动"         # 运营商
        }
    },
    # 银行卡产品－银行卡四要素简版
    "bankcardInfo4": {
        "status":0,               # 接口返回码：0-成功(收费); 1-10 各种错误
        "seqNum": "0271478657051xxx",
        "message":"成功",
        "data":{
            "result":"000",       # 000-验证通过（收费）, 100-验证信息不⼀致（收费）
            "resultMsg":"验证通过"
        }
    },
    # 身份信息-照片人证比对V2
    "photograph": {
        "seqNum": "1218082800000034",
        "status": 0,                   # 接口返回码：0-成功(收费); 1-10 各种错误
        "message": "成功",
        "data": {
            "result": 1,               # 1-认证成功,2-认证失败 ; 其他错误
            "resultMsg": "信息⼀致，认证成功",
            "similar": "14.75",        # similar值⼤于threshold1值就认定认证⽐对通过
            "threshold1":"77.9" ,      # 不是本⼈测试1000次有⼀次通过的概率
            "threshold2": "83.9",      # 不是本⼈测试10000次有⼀次通过的概率
        }
    },
}

#phonestate电话邦-邦信分快捷版response
phoneState_api_01 = {
    "msg": "OK",
    "status": 0,     # 错误码，0-成功
    "data":{
        "c_score": 0,              # 综合评分；-6~100 ,特殊取值如下dm_score
        "dm_score": 651,           # 手机号信用分；-6~850 (-3->查无详单，即申请人近90天无通话记录,-4->申请人近90天通话次数<=10,-5->申请人近60天无通话记录,-6->申请人近90天通话次数<=10且近60天无通话记录)
        "result_date": "20190904",                  # 本次输出结果对应的有效日期
        "sid": "2cd932729d5bb3432edb390af2bb8577",
        "a_FCDays":6,              # 首次通话距今天数：0-7分段（0->[0,5]...7->[90,90]表示 90 天内没有通话）
        "a_LCDays":0,              # 末次通话距今天数：0-7分段（0->[0,1]...7->[90,90]表示 90 天内没有通话）
        "a_Slience":3,             # 最大连续静默天数：0-7分段（0->[0,0]...19->[21,90]）
        "a_calls":3,               # 通话总次数：0-19分段（0->[0,10]...19->[3501,无穷大]）
        "a_inRates":16,            # 被叫次数占比：0-19分段（0->[-1,-1]通话为0...19->[0.91,1]）
        "a_mdnRate":2,             # 凌晨通话占比：0-7分段（0->[-1,-1]通话为0...19->[0.21,1]）
        "a_nums":0,                # 日均通话号码数：0-19分段（0->[0,1]...19->[29,无穷大]）
        "c_1530Times":0,
        "c_60Times":0,
        "c_cTimes":0,              # 被叫催收总次数：-6~900(-3-申请人近90天无通话记录、-4-申请人近90天通话次数<=10、-5-申请人近60天无通话记录、-6-申请人近90天通话次数<=10且近60天无通话记录)
        "c_cTimesIn14":0,
        "c_cTimesIn21":0,
        "c_cTimesIn30":0,
        "c_cTimesIn3060":0,
        "c_cTimesIn7":0,
        "c_fTime":-1,              # 首次催收通话距今天数：-1/3/7/14/21/28/30/60/90
        "c_in15Times":0,
        "c_lTime":-1,              # 末次催收距今天数：-1/3/7/14/21/28/30/60/90  （-1->无催收记录，3->1~3天，90->61-90天）
        "c_num":0,                 # 催收号码总个数：-6~900
        "c_numIn14":0,
        "c_numIn21":0,
        "c_numIn30":0,
        "c_numIn3060":0,
        "c_numIn7":0,
        "c_tTimes":0,              # 催收通话总次数：-6~900
        "y_60Times":0,
        "y_cTimes":0,
        "y_cTimesIn30":0,
        "y_cTimesIn7":0,
        "y_lTime":-1,
        "y_num":0,
        "y_numIn30":0,
        "y_tTimes":0
    },
}

# 建信金科（建行）
jianXin = {
    # 慧评分查询接口：一次查询最多仅能获取一条信息
    "gradeQuery":{
        "code": "200",     # 200-查询到客户数据，401-token过期，403-无权限，E40001-未查询到客户数据，E40031-姓名、证件号码匹配不一致，E00000-综合类异常，E99999-系统异常
        "msg": None,
        "status": "200",   # 默认为200
        "result": {
            "Crdt_No":"11",                            # 证件号
    		"Crdt_TpCd":"1010",                        # 证件类型编码
    	 	"Cst_Nm":"张三",
            "MULTI_TENANCY_ID": "CN000",               # 多实体标志，固定值CN000
            "Prcg_IntRt_UpLm_Val":202.0,               # 建议客户利率上调bp值
    		"Prmpt_Inf_Topc_Dsc":"{\"履约表现\":6.9,\"近期债务\":6.9,\"额度使用\":6.9,\"往来账龄\":8.9,\"金融资产\":5.2,\"身份特质\":6.8}",
    		"Rsk_Qot":"1000",                          # 风险限额
    		"Scor_Crd_Scor":"652",                     # 客户风险评分（建信风险评分）-jianXinRiskScore
    		"Scor_Rel_Lo_Dsc":"0.8872",                # 1减去该值等于优于全国客户值
    		"ScsInd":"1",                              # 标志位，查询无结果返回0，查询成功返回1
            "Rpt_Dt":"20190930",                       # 报告期（上月底日期）
            # 多维度评分的结构体，分高好？
            "AfTVO":{
                "Dealg_AccAg_Scor":"8.9",        # 往来账龄（）
                "Fast_Scor":"5.2",               # 金融资产（）
                "Idnt_Scor":"6.8",               # 身份特质（）
       	        "LmU_Scor":"6.9",                # 额度使用（）
    	        "Prf_Prfmn_Scor":"6.9",          # 履约表现（）
    	        "Rcnt_Dbt_Scor":"6.9"            # 近期账务
            } 
        }
    },
    # 慧筛查查询接口：根据客户三要素信息获取客户风险预警信息
    "loanWarn":{
        "code": "200",
        "status":"200",
        "msg": None,
        "result":{
            "Crdt_No":"11",
            "Crdt_TpCd":"1010",
            "Cst_Nm":"张三",
 		    "Rsn_CD_Val":"00",                   # 接口标志位,00客户匹配成功，01证件号匹配成功，客户名称不一致。90-未查询到预警记录
            "Prmpt_Inf_Topc_Dsc":"客户匹配成功",
            # 预警规则信息列表
            "PstLoaanWarn":[
 			    {
                    "Supr_Rtg_Idx_ECD":"D",
 				    "Tx_Tp_Idx_Val":"重要信息提示",
 				    "JnBlistRsnList":[
 					    {
 						    "Blist_Shr_Rule_ID":"D001",     # 预警类型编码
 						    "Jn_Blist_Rsn":"xxxxxx",        # 预警信息
                            "Rpt_Dt":"20190831"
 					    },
 					    {
 						    "Blist_Shr_Rule_ID":"D002",
 						    "Jn_Blist_Rsn":"xxxxxx",
                            "Rpt_Dt":"20190831"
 					    }
 			        ]
 			    }
 		    ]
        }
    }
}

# 银联智慧
union_risk = {
    "code":"200",          # 响应码
    "message": "查询成功",  # 响应码的描述
    "status": "2000",      # 状态码
    "orderId": "JQXxooYWfdw03It5ZGpt",
    "smartId": "ce8144a0-0767-4781-a1ae-5dff222794e5",
    "data":{
        "asset":{
            "zc1":"555",
            "zc2": "Y",
            "zc10":"6",
            "zc11":"(1000,2000]",
            "zc12":"6",
            "zc13":"(1000,2000]",  # 近1月入账交易总金额
            "zc14":"(1000,2000]",  # 近3月入账交易总金额
            "zc15":"(1000,2000]",  # 近6月入账交易总金额
            "zc16":"(1000,2000]",  # 近12月入账交易总金额
            "zc17":"6",            # 近1月入账交易总笔数
            "zc18":"6",            # 近3月入账交易总笔数
            "zc19":"6",            # 近6月入账交易总笔数
            "zc20":"6",            # 近12月入账交易总笔数
            "zc21":"(1000,2000]",  # 近1月出账交易总金额
            "zc22":"(1000,2000]",  # 近3月出账交易总金额
            "zc23":"(1000,2000]",  # 近6月出账交易总金额
            "zc24":"(1000,2000]",  # 近12月出账交易总金额
            "zc25":"6",            # 近1月出账交易总笔数
            "zc26":"6",            # 近3月出账交易总笔数
            "zc27":"6",            # 近6月出账交易总笔数
            "zc28":"6",            # 近12月出账交易总笔数
            "zc29":"(1000,2000]",
            "zc3":"Unknown",
            "zc30":"(1000,2000]",
            "zc31":"(1000,2000]",
            "zc32":"(1000,2000]",
            "zc33":"(1000,2000]",
            "zc34":"(1000,2000]",
            "zc35":"(1000,2000]",
            "zc36":"(1000,2000]",
            "zc4":"Unknown",
            "zc5":"Y",
            "zc6":"2018-10",
            "zc7":"2018-10",
            "zc8":"Y",
            "zc9":"(1000,2000]"
        },            # 资产状况zc
        "comcredit":{
            "zh1":"500",
            "zh2": "1100",
            "zh3": "5",
            "zh4": "3",
            "zh10":"3",            # 近1月最大交易天数
            "zh11":"3",            # 近3月最大交易天数
            "zh12":"3",            # 近6月最大交易天数
            "zh13":"3",            # 近12月最大交易天数
            "zh14":"(1000,2000]",  # 近1月交易总金额
            "zh15":"(1000,2000]",  # 近3月交易总金额
            "zh16":"(1000,2000]",  # 近6月交易总金额
            "zh17":"(1000,2000]",  # 近12月交易总金额
            "zh18":"3",            # 近1月交易总笔数
            "zh19":"3",            # 近3月交易总笔数
            "zh20":"3",            # 近6月交易总笔数
            "zh21":"3",            # 近12月交易总笔数
            "zh22":"(1000,2000]",  # 近1月银行类交易总金额
            "zh23":"(1000,2000]",  # 近3月银行类交易总金额
            "zh24":"(1000,2000]",  # 近6月银行类交易总金额
            "zh25":"(1000,2000]",  # 近12月银行类交易总金额
            "zh26":"(1000,2000]",  # 近1月，交易渠道为手机、个人电脑的交易总金额
            "zh27":"(1000,2000]",  # 近3月，交易渠道为手机、个人电脑的交易总金额
            "zh28":"(1000,2000]",  # 近6月，交易渠道为手机、个人电脑的交易总金额
            "zh29":"(1000,2000]",  # 近12月，交易渠道为手机、个人电脑的交易总金额
            "zh30":"(1000,2000]",  # 近1月22:00~04:00的交易总金额
            "zh31":"(1000,2000]",  # 近3月22:00~04:00的交易总金额
            "zh32":"(1000,2000]",  # 近6月22:00~04:00的交易总金额
            "zh33":"(1000,2000]",  # 近12月22:00~04:00的交易总金额
            "zh34":"3",            # 近12月最近一笔交易距今天数
            "zh35":"(1000,2000]",  # 近12月单笔金额(0,1W]的消费类交易总金额
            "zh36":"(1000,2000]",  # 近12月单笔金额(1W,5W]的消费类交易总金额
            "zh37":"(1000,2000]",  # 近12月单笔金额(5W,+]的消费类交易总金额
            "zh38":"0.333",        # 近12月单笔金额(0,1W]的消费类交易总金额占总交易金额的占比
            "zh39":"0.333",        # 近12月单笔金额(1W,5W]的消费类交易总金额占总交易金额的占比
            "zh40":"0.333",        # 近12月单笔金额(5W,+]的消费类交易总金额占总交易金额的占比
            "zh5":"2",
            "zh6":"3",
            "zh7":" 金卡 ",       # 信用卡最高等级：例：普卡，银卡，金卡，白金卡，钻石卡，无限卡
            "zh8":"300",
            "zh9":"12"
        },        # 综合评估zh
        "cusability":{
            "xf1":"550",          # 消费能力分：1~1000分
            "xf2": "一档",         # 最高消费档次：综合用户近一年的消费总金额，判断其消费最高档次，一档/二挡/…/九档/十档
            "xf3": "高",           # 最高综合消费活跃度：综合用户近一年的消费总笔数，判断其消费最高活跃度；高/中/低
            "xf4": "(1000,2000]",  # 近1月消费总金额
            "xf5": "(1000,2000]",  # 近3月消费总金额
            "xf6": "(1000,2000]",  # 近6月消费总金额
            "xf7": "(1000,2000]",  # 近12月消费总金额
            "xf8": "(1000,2000]",  # 近1月信用卡消费金额
            "xf9": "(1000,2000]",  # 近3月信用卡消费金额
            "xf10":"(1000,2000]",  # 近6月信用卡消费金额
            "xf11":"(1000,2000]",  # 近12月信用卡消费金额
            "xf12":"10",           # 近1月消费笔数
            "xf13":"10",           # 近3月消费笔数
            "xf14":"10",           # 近6月消费笔数
            "xf15":"10",           # 近12月消费笔数
            "xf16":"10",           # 近1月信用卡消费笔数
            "xf17":"10",           # 近3月信用卡消费笔数
            "xf18":"10",           # 近6月信用卡消费笔数
            "xf19":"10",           # 近12月信用卡消费笔数
            "xf20":"10",           # 近1月消费天数
            "xf21":"10",           # 近3月消费天数
            "xf22":"10",           # 近6月消费天数
            "xf23":"10",           # 近12月消费天数
            "xf24":"(1000,2000]",  # 近1月最大单日消费金额
            "xf25":"(1000,2000]",  # 近3月最大单日消费金额
            "xf26":"(1000,2000]",  # 近6月最大单日消费金额
            "xf27":"(1000,2000]",  # 近12月最大单日消费金额
            "xf28":"(1000,2000]",
            "xf29":"(1000,2000]",
            "xf30":"(1000,2000]",
            "xf31":"(1000,2000]",
            "xf32":"(1000,2000]",
            "xf33":"(1000,2000]",
            "xf34":"(1000,2000]",
            "xf35":"(1000,2000]",
            "xf36":"(1000,2000]",
            "xf37":"(1000,2000]",
            "xf38":"(1000,2000]",
            "xf39":"10",
            "xf40":"10",
            "xf41":"10",
            "xf42":"10",
            "xf43":"10",
            "xf44":"10",
            "xf45":"10",
            "xf46":"10",
            "xf47":"(1000,2000]",
            "xf48":"(1000,2000]",
            "xf49":"(1000,2000]",
            "xf50":"(1000,2000]",
            "xf51":"10",
            "xf52":"10",
            "xf53":"10",
            "xf54":"10",
            "xf55":"(1000,2000]",
            "xf56":"(1000,2000]",
            "xf57":"(1000,2000]",
            "xf58":"(1000,2000]",
            "xf59":"(1000,2000]",
            "xf60":"(1000,2000]",
            "xf61":"(1000,2000]",
            "xf62":"(1000,2000]"
        },       # 消费能力xf
        "netloan":{
            "xd1":"656",
            "xd2": "585",
            "xd3": "8",      # 近1月金额不足交易总笔数
            "xd4": "8",      # 近3月金额不足交易总笔数
            "xd5": "8",      # 近6月金额不足交易总笔数
            "xd6": "8",      # 近12月金额不足交易总笔数
            "xd7": "8",      # 近1月交易失败总笔数
            "xd8": "8",      # 近3月交易失败总笔数
            "xd9": "8",      # 近6月交易失败总笔数
            "xd10":"8",      # 近12月交易失败总笔数
            "xd11":"8",      # 近1月最大单日失败交易笔数
            "xd12":"8",      # 近3月最大单日失败交易笔数
            "xd13":"8",      # 近6月最大单日失败交易笔数
            "xd14":"8",      # 近12月最大单日失败交易笔数
            "xd15":"8",
            "xd16":"(1000,2000]",
            "xd17":"(1000,2000]",
            "xd18":"(1000,2000]",
            "xd19":"8",
            "xd20":"0.333",
            "xd21":"(1000,2000]",
            "xd22":"0.333",
            "xd23":"0.333",
            "xd24":"8",
            "xd25":"(1000,2000]",
            "xd26":"(1000,2000]",
            "xd27":"0.333",
            "xd28":"0.333",
            "xd29":"(1000,2000]",
            "xd30":"8"
        }           # 信贷行为xd
    }
}

# 鹏元-用户手机行为分析
pengyuan = {
	"status":"1",
	"returnValue":{
		"batNo":"20200521187000000002",
		"unitName":"广州仁东互联网小额贷款有限公司",
		"subOrgan":"风控部",
		"queryUserID":"testrdwsquery",
		"queryCount":"1",
		"receiveTime":"20200521 18:34:21",
		"cisReport":[
			{
				"reportID":"20200521187000000002",
				"buildEndTime":"2020-05-21 18:34:21",
				"queryReasonID":"901",                      # 查询原因ID
				"subReportTypes":"13620,13621,11527,11516",
				"treatResult":"0,0,0,0",
				"subReportTypesShortCaption":"1、手机号码状态查询(13620) 2、手机号码在网时长查询(13621) 3、平均话费消费区间(移动)(11527) 4、手机号码核查(移动)(11516)",
				"refID":"CW20200521HB000012",
				"hasSystemError":"false",     # 是否有系统错误，true-有错误，false-无错误。
				"isFrozen":"false",
				"queryConditions":[
					{
						"name":"name",
						"caption":"被查询者姓名",
						"value":"杨腾欧"
					},
					{
						"name":"documentNo",
						"caption":"被查询者证件号码",
						"value":"432821197702284116"
					},
					{
						"name":"phone",
						"caption":"被查询者手机号码",
						"value":"18807351662"
					},
					{
						"name":"queryItems",
						"caption":"查询项",
						"value":"A,B,D"
					}
				],          # 查询条件信息
				"mobileCheckInfo":{
					"subReportType":"11516",
					"subReportTypeCost":"96073",
					"treatResult":"2",            # 子报告查询状态：1-查得，2-未查得，3-其他原因未查得
					"errorMessage":""
				},          # 手机号码核查结果
				"mobileStatusOnlyInfo":{
					"subReportType":"13621",
					"subReportTypeCost":"96073",
					"treatResult":"2",
					"errorMessage":""
				},     # 手机状态信息
				"mobileOnlineTimeOnlyInfo":{
					"subReportType":"13624",
					"subReportTypeCost":"96073",
					"treatResult":"2",
					"errorMessage":""
				}, # 手机在网时长信息
				"feeLevelInfo":{
					"subReportType":"11527",
					"subReportTypeCost":"96073",
					"treatResult":"2",
					"errorMessage":""
				}              # 会员级别
			}
		]
	}
}

if __name__ == '__main__':
    a = tongDun['result_desc']['ANTIFRAUD']['risk_items']
    for i in a:
        print(i['risk_name'])